package com.pox.guli.service.cms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pox.guli.service.cms.entity.Ad;
import com.pox.guli.service.cms.entity.vo.AdVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 广告推荐 Mapper 接口
 * </p>
 *
 * @author pox21s
 * @since 2022-06-05
 */
public interface AdMapper extends BaseMapper<Ad> {

    /**
     * 多表链表查询，返回前台广告页集合
     *
     * @param pageParam    分页参数
     * @param queryWrapper 组装查询条件
     * @return java.util.List<com.pox.guli.service.cms.entity.vo.AdVo>
     */
    List<AdVo> selectPageByQueryWrapper(Page<AdVo> pageParam,
                                        @Param(Constants.WRAPPER)
                                                QueryWrapper<AdVo> queryWrapper);
}
